    <div id="koilog">
        <input type="button" value="X" onclick="$('koilog').setStyle('display','none');" style="margin:-15px 10px 0px; color:#a00; padding:1px 5px; float:right;" />
        <pre id="koilogpre"><span>Page loaded</span>Waiting for user...</pre>
    </div>
    
    <form action="#" id="koimirror">
        <input type="radio" value="0" name="mirror" id="koi_mirror0" /><label for="koi_mirror0">Automatic</label><br />
<?php
        $m = array_keys($GLOBALS['mirrors']);
        foreach ($m as $k => $url) {
            $x = $k+1;
            $h = parse_url($url);
            echo '        <input type="radio" value="'.$x.'" name="mirror" id="koi_mirror'.$x.'" /><label for="koi_mirror'.$x.'">'.$h['host'].'</label><br />'."\n";
        }
?>
    </form>
    <form action="#" id="koimethod">
        <input type="radio" value="0" name="method" id="koi_method0" /><label for="koi_method0">Automatic</label><br />
        <input type="radio" value="curl" name="method" id="koi_methodcurl" /><label for="koi_methodcurl">cURL</label><br />
        <input type="radio" value="fopen" name="method" id="koi_methodfopen" /><label for="koi_methodfopen">fopen</label><br />
        <input type="radio" value="fsock" name="method" id="koi_methodfsock" /><label for="koi_methodfsock">fsock</label><br />
        <input type="radio" value="no" name="method" id="koi_methodno" /><label for="koi_methodno">Offline Install</label>
    </form>
    
    <div id="koiaboutproj">
        <h2>About <?php echo $GLOBALS['project']['name']; ?></h2>
        <p>
        <?php if ($GLOBALS['project']['url']) { ?>
        <a href="<?php echo $GLOBALS['project']['url']; ?>" target="_blank"><?php echo $GLOBALS['project']['name']; ?></a>
        <?php } else { ?>
        <?php echo $GLOBALS['project']['name']; ?>
        <?php } ?>
        version <?php echo $GLOBALS['project']['version']; ?></p>
        <p>
        <?php if ($GLOBALS['project']['blurb']) { ?><p><?php echo $GLOBALS['project']['blurb']; ?></p><?php } ?>
        <?php if ($GLOBALS['project']['url']) { ?>
        <a href="<?php echo $GLOBALS['project']['url']; ?>" target="_blank"><?php echo ($GLOBALS['project']['author']?$GLOBALS['project']['author']:$GLOBALS['project']['url']); ?></a>
        <?php } elseif ($GLOBALS['project']['author']) { ?>
        <?php echo $GLOBALS['project']['author']; ?>
        <?php } ?>
        </p>
    </div>
    
    <div id="koiabout">
        <h2>About Koi</h2>
        <p><a href="http://koi.googlecode.com/" target="_blank">Koi</a> version 0.1alpha</p>
        <p>Automated download &amp; installation software</p>
        <p>&copy; <a href="http://fullvolume.co.uk/" target="_blank">Fullvolume.co.uk</a></p>
    </div>
    
    <div id="koiline">
        <a href="http://koi.googlecode.com/" target="_blank" id="koitag">Powered by Koi installer<img src="?f=koi.png" alt="" /></a>
        <div id="koimenu">
            Advanced
            <ul id="koiadvanced">
                <li id="koi_showlog">View Log</li>
                <li id="koi_showmirror">Select Mirror</li>
                <li id="koi_showmethod">Download Method</li>
                <li id="koi_showaboutproj">About <?php echo $GLOBALS['project']['name']; ?></li>
                <li id="koi_showabout">About Koi</li>
            </ul>
        </div>
    </div>